import {getClient} from '../utils/util'
import {getPath} from './util'

let client = getClient;

const RouterCharts = [

  {
    path: getPath('/courseCharts/:teamId/:type'),
    name: 'courseCharts',
    component: resolve => require([`@/pages/university/chartsDetail/courseCharts`], resolve),
    meta: {
      title: '课程排行榜',
    }
  },

  {
    path: getPath('/learnValueCharts/:teamId/:type'),
    name: 'studiesCharts',
    component: resolve => require([`@/pages/university/chartsDetail/learnValueCharts`], resolve),
    meta: {
      title: '学习值排行榜',
    }
  },
  {
    path: getPath('/certCharts/:teamId/:type'),
    name: 'certCharts',
    component: resolve => require([`@/pages/university/chartsDetail/certCharts`], resolve),
    meta: {
      title: '证书排行榜',
    }
  },
  {
    path: getPath('/courseChartsTeam/:teamId'),
    name: 'courseChartsTeam',
    component: resolve => require([`@/pages/university/chartsDetail/courseChartsTeam`], resolve),
    meta: {
      title: '门店课程排行榜',
    }
  },
  {
    path: getPath('/learnValueChartsTeam/:teamId'),
    name: 'learnValueChartsTeam',
    component: resolve => require([`@/pages/university/chartsDetail/learnValueChartsTeam`], resolve),
    meta: {
      title: '门店学习值排行榜',
    }
  },
  {
    path: getPath('/certChartsTeam/:teamId'),
    name: 'certChartsTeam',
    component: resolve => require([`@/pages/university/chartsDetail/certChartsTeam`], resolve),
    meta: {
      title: '门店证书排行榜',
    }
  },
];

export default RouterCharts
